package com.student.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.student.dao.StudentDao;
import com.student.entity.Student;


public class transitServlet extends HttpServlet{
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("utf-8"); 
		String uid=request.getParameter("uid");
		StudentDao sDao=new StudentDao();
		Student student=sDao.getInfo(uid);
		request.setAttribute("student", student);
		request.getRequestDispatcher("page/update.jsp").forward(request, response);
	}
}
